package com.scf.contract.service.impl;

import com.scf.contract.entity.Bank;
import com.scf.contract.mapper.BankMapper;
import com.scf.contract.service.BankService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-15-15:13
 */
@Service
public class BankServiceImpl implements BankService {
    @Resource
    BankMapper bankMapper;
    @Override
    public List<Bank> selectAll() {
        return bankMapper.selectAll();
    }

    @Override
    public Bank getBankByBcid(int bcid) {
        Bank bankByBcid = bankMapper.getBankByBcid(bcid);
        return bankByBcid;
    }

    @Override
    public void addBank(Bank bank) {
        bankMapper.addBank(bank);
    }
}
